<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="order" tagdir="/WEB-INF/tags/order"%>
<%@ taglib prefix="system" tagdir="/WEB-INF/tags/system"%>


<div class="content">
	<div class="box_04">
		<div class="cnt">
			<div class="top">
				<fmt:message key="salesOrder.editPanel.pay" />
			</div>
			<table width="100%" border="0" cellspacing="0" cellpadding="0" class="settings_table1"  height="60px;">
				<tr >
					<th width="120px;"><fmt:message key="checkout.paymentMethod.paymentMethodName"/>(<span class="red">*</span>)：</th>
					<td>
						<c:forEach items="${paymentMethodList}" var="paymentMethod" begin="1" end="3">
							<label>
								<input type="radio" name="paymentMethodId" isCod="${paymentMethod.iscod}"  value="${paymentMethod.paymentMethodId}" onchange="changePaymentMethod(this);" onclick="this.blur();this.focus();"  validConf="required"/>
								${paymentMethod.paymentMethodName}
							</label>
						</c:forEach>
						<c:if test="${empty paymentMethodList}">
							<b><font color="red"><fmt:message key="checkout.noPaymentMethod"/></font></b>
							<input type="hidden" name="paymentMethodId" validConf="required"/>
						</c:if>
					</td>	
				</tr>
			</table>
			
		</div>
	</div>
</div>

<br/>
<br/>
<script type="text/javascript">
$j(document).ready(function () {
	<c:if test="${not empty paymentMethodList}">
		//选择第一个支付方式
		$j('input[name="paymentMethodId"]:first').attr("checked",true).change();
	</c:if>
	
	
});
</script>
